package com.wwmz.spring.cloud.gateway.current;

import com.sun.org.apache.xml.internal.security.keys.keyresolver.KeyResolver;
import org.springframework.context.annotation.Bean;
import reactor.core.publisher.Mono;

/**
 * 用户限流
 * created by wumz
 */
public class UserCurrent {

//    @Bean
//    KeyResolver userKeyResolver() {
//        return exchange ->
//                Mono.just(exchange.getRequest().getQueryParams().getFirst("userId"));
//    }
}
